<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>th标签  thead tbody tfoot标签</title>
    <!-- th标签也是单元标签 比td多 居中、加粗 -->
</head>
<body>
    <table> 
        <tr>
            <!-- 
            <td>员工编号</td>
            <td>员工薪酬</td>
            <td>部门名称</td>
            -->
            <th>员工编号</th>
            <th>员工薪酬</th>
            <th>部门名称</th>
        </tr>
        <tr>
            <td>a</td>
            <td>b</td>
            <td rowspan="2">c</td>
        </tr>
        <tr>
            <td colspan="2">d</td>
            <!-- <td>e</td> -->
            <!-- 
            <td>f</td>
            -->
        </tr>
    </table>
</body>
</html>


<!-- 表格可以分为3部分 thead tbody以及tfoot 在table中不是必须的，只是这样做方便在后期的js代码编写-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <table>
        <thead>
            <tr>
                <td>员工编号</td>
                <td>员工薪酬</td>
                <td>部门名称</td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
            </tr>
        </tbody>
        
        <tfoot>
            <tr>
                <td>a</td>
                <td>b</td>
                <td>c</td>
            </tr>
        </tfoot>
    </table>




</body>
</html>